package jointPart_3_URLlist;

import java.io.IOException;
import java.util.Scanner;
import jxl.JXLException;

import benchmarking.benchmarker;

public class Benchmark {

	/**
	 * @param args
	 * @throws IOException
	 * @throws JXLException 
	 */
	public static void main(String[] args) throws IOException, JXLException {

		if (args.length != 1) {
			System.err
					.println("Error: Incorrect number of arguments, expected one");
			System.exit(1);
		} else {
			HTMLlist DataList = new HTMLlist(args[0]);

			Scanner in = new Scanner(System.in);
			System.out.print("Indtast ord: ");
			String word = in.next();

			
			//BENCHMARK
			benchmarker Timer = new benchmarker();
			
			Timer.createSheet("p3_small");
			
			for(int i=1;i<101;i++)
			{
			Timer.start();
			DataList.print(DataList, word);
			Timer.end();
			}
			Timer.close();
		}
	}

}
